﻿// ******************************************************************
// * Copyright(c)  Dextrys P&G Team
// * Description   : Schema_INV_DIVERT_ORDER
// * CreateDate    : 2012/10/10 10:08:20
// * Creater       : InvDivertOrderTable
// * LastChangeDate: 2012/10/10 10:08:20
// * LastChanger   : 2012/10/10 10:08:20
// * Version Info  : 1.0 For LKBOOK
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
    [Serializable]
    public partial class InvDivertOrderTable : TableInfo
    {
        public const string C_TableName = "INV_DIVERT_ORDER";

        public const string C_DIVERT_ORDER_ID = "DIVERT_ORDER_ID";
        public const string C_OUT_WAREHOUSE_CODE = "OUT_WAREHOUSE_CODE";
        public const string C_IN_WAREHOUSE_CODE = "IN_WAREHOUSE_CODE";
        public const string C_OUT_LOCATION_ID = "OUT_LOCATION_ID";
        public const string C_IN_LOCATION_ID = "IN_LOCATION_ID";
        public const string C_PRODUCT_ID = "PRODUCT_ID";
        public const string C_QTY = "QTY";
        public const string C_ORDER_TYPE = "ORDER_TYPE";
        public const string C_ORDER_CODE = "ORDER_CODE";
        public const string C_ORDER_DATE = "ORDER_DATE";
        public const string C_ORDER_PERSON = "ORDER_PERSON";
        public const string C_RELATED_ORDER = "RELATED_ORDER";
        public const string C_REMARK = "REMARK";
        public const string C_CREATED_DATE = "CREATED_DATE";
        public const string C_CREATED_BY = "CREATED_BY";
        public const string C_LAST_MODIFIED_DATE = "LAST_MODIFIED_DATE";
        public const string C_LAST_MODIFIED_BY = "LAST_MODIFIED_BY";
        public const string C_APPROVED_DATE = "APPROVED_DATE";
        public const string C_APPROVED_BY = "APPROVED_BY";
        public const string C_STATUS = "STATUS";

        public InvDivertOrderTable()
        {
            _tableName = "INV_DIVERT_ORDER";
        }

        protected static InvDivertOrderTable _current;
        public static InvDivertOrderTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }

        private static void Initial()
        {
            _current = new InvDivertOrderTable();

            _current.Add(C_DIVERT_ORDER_ID, new ColumnInfo(C_DIVERT_ORDER_ID, "DivertOrderId", true, typeof(string)));
            _current.Add(C_OUT_WAREHOUSE_CODE, new ColumnInfo(C_OUT_WAREHOUSE_CODE, "OutWarehouseCode", false, typeof(string)));
            _current.Add(C_IN_WAREHOUSE_CODE, new ColumnInfo(C_IN_WAREHOUSE_CODE, "InWarehouseCode", false, typeof(string)));
            _current.Add(C_OUT_LOCATION_ID, new ColumnInfo(C_OUT_LOCATION_ID, "OutLocationId", false, typeof(string)));
            _current.Add(C_IN_LOCATION_ID, new ColumnInfo(C_IN_LOCATION_ID, "InLocationId", false, typeof(string)));
            _current.Add(C_PRODUCT_ID, new ColumnInfo(C_PRODUCT_ID, "ProductId", false, typeof(string)));
            _current.Add(C_QTY, new ColumnInfo(C_QTY, "Qty", false, typeof(decimal)));
            _current.Add(C_ORDER_TYPE, new ColumnInfo(C_ORDER_TYPE, "OrderType", false, typeof(string)));
            _current.Add(C_ORDER_CODE, new ColumnInfo(C_ORDER_CODE, "OrderCode", false, typeof(string)));
            _current.Add(C_ORDER_DATE, new ColumnInfo(C_ORDER_DATE, "OrderDate", false, typeof(DateTime)));
            _current.Add(C_ORDER_PERSON, new ColumnInfo(C_ORDER_PERSON, "OrderPerson", false, typeof(string)));
            _current.Add(C_RELATED_ORDER, new ColumnInfo(C_RELATED_ORDER, "RelatedOrder", false, typeof(string)));
            _current.Add(C_REMARK, new ColumnInfo(C_REMARK, "Remark", false, typeof(string)));
            _current.Add(C_CREATED_DATE, new ColumnInfo(C_CREATED_DATE, "CreatedDate", false, typeof(DateTime)));
            _current.Add(C_CREATED_BY, new ColumnInfo(C_CREATED_BY, "CreatedBy", false, typeof(string)));
            _current.Add(C_LAST_MODIFIED_DATE, new ColumnInfo(C_LAST_MODIFIED_DATE, "LastModifiedDate", false, typeof(DateTime)));
            _current.Add(C_LAST_MODIFIED_BY, new ColumnInfo(C_LAST_MODIFIED_BY, "LastModifiedBy", false, typeof(string)));
            _current.Add(C_APPROVED_DATE, new ColumnInfo(C_APPROVED_DATE, "ApprovedDate", false, typeof(DateTime)));
            _current.Add(C_APPROVED_BY, new ColumnInfo(C_APPROVED_BY, "ApprovedBy", false, typeof(string)));
            _current.Add(C_STATUS, new ColumnInfo(C_STATUS, "Status", false, typeof(string)));

        }

        public ColumnInfo DIVERT_ORDER_ID
        {
            get { return this[C_DIVERT_ORDER_ID]; }
        }

        public ColumnInfo OUT_WAREHOUSE_CODE
        {
            get { return this[C_OUT_WAREHOUSE_CODE]; }
        }

        public ColumnInfo IN_WAREHOUSE_CODE
        {
            get { return this[C_IN_WAREHOUSE_CODE]; }
        }

        public ColumnInfo OUT_LOCATION_ID
        {
            get { return this[C_OUT_LOCATION_ID]; }
        }

        public ColumnInfo IN_LOCATION_ID
        {
            get { return this[C_IN_LOCATION_ID]; }
        }

        public ColumnInfo PRODUCT_ID
        {
            get { return this[C_PRODUCT_ID]; }
        }

        public ColumnInfo QTY
        {
            get { return this[C_QTY]; }
        }

        public ColumnInfo ORDER_TYPE
        {
            get { return this[C_ORDER_TYPE]; }
        }

        public ColumnInfo ORDER_CODE
        {
            get { return this[C_ORDER_CODE]; }
        }

        public ColumnInfo ORDER_DATE
        {
            get { return this[C_ORDER_DATE]; }
        }

        public ColumnInfo ORDER_PERSON
        {
            get { return this[C_ORDER_PERSON]; }
        }

        public ColumnInfo RELATED_ORDER
        {
            get { return this[C_RELATED_ORDER]; }
        }

        public ColumnInfo REMARK
        {
            get { return this[C_REMARK]; }
        }

        public ColumnInfo CREATED_DATE
        {
            get { return this[C_CREATED_DATE]; }
        }

        public ColumnInfo CREATED_BY
        {
            get { return this[C_CREATED_BY]; }
        }

        public ColumnInfo LAST_MODIFIED_DATE
        {
            get { return this[C_LAST_MODIFIED_DATE]; }
        }

        public ColumnInfo LAST_MODIFIED_BY
        {
            get { return this[C_LAST_MODIFIED_BY]; }
        }

        public ColumnInfo APPROVED_DATE
        {
            get { return this[C_APPROVED_DATE]; }
        }

        public ColumnInfo APPROVED_BY
        {
            get { return this[C_APPROVED_BY]; }
        }

        public ColumnInfo STATUS
        {
            get { return this[C_STATUS]; }
        }



    }
}

